import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import user from './views/nav1/user.vue'
import role from './views/nav1/role.vue'
import resources from './views/nav1/resources.vue'


export default [
 {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: Home,
        name: '权限管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/main', component: Main, name: '主页', hidden: true },
            { path: '/user', component: user, name: '用户管理' },
            { path: '/role', component: role, name: '角色管理' },
            { path: '/resources', component: resources, name: '资源管理' },
        ]
    },
]
